package com.samuel.basics.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * <p>
 * 菜单信息表
 * </p>
 *
 * @author kaiji
 * @since 2019-08-17
 */
@TableName("t_menu")
public class MenuEntity extends BaseEntity {
    private static final long serialVersionUID = -3923390293343416887L;

    /**
     * 菜单名称
     */
    @TableField("name")
    private String name;

    /**
     * 菜单地址
     */
    @TableField("url")
    private String url;

    /**
     * 父菜单ID 0：顶级 其他：子菜单
     */
    @TableField("pid")
    private String pid;

    /**
     * 是否是菜单 1：菜单 2：按钮
     */
    @TableField("menu")
    private int menu;

    /**
     * 菜单图标
     */
    @TableField("icon")
    private String icon;

    /**
     * 排序， 越小越前
     */
    @TableField("order_num")
    private int orderNum;

    @TableField(exist = false)
    private String pidName;

    public String getName() {
        return name;
    }

    public MenuEntity setName(String name) {
        this.name = name;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public int getMenu() {
        return menu;
    }

    public void setMenu(int menu) {
        this.menu = menu;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public int getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(int orderNum) {
        this.orderNum = orderNum;
    }

    public String getPidName() {
        return pidName;
    }

    public void setPidName(String pidName) {
        this.pidName = pidName;
    }
}
